package com.lushu.chapitre1.net.services {
import com.sfdk.net.php.BaseRemotingService;

import flash.net.Responder;

public class GameInfoService extends BaseRemotingService {
    private static var _instance:GameInfoService;

    public function GameInfoService() {
        super("gameInfo");
        _instance = this;
    }

    public static function get instance():GameInfoService {
        if (_instance == null)
            _instance = new GameInfoService();
        return _instance;
    }

    public static function getGameInfo(onResult:Function, onFault:Function):void {
        instance.call("getInfo", new Responder(onResult, onFault));
    }
}
}